﻿<%@ Page Title="" Language="C#" MasterPageFile="~/WebAdmin/pheader.Master" AutoEventWireup="true"
    CodeBehind="UpdateCat.aspx.cs" Inherits="ZWZ.Web.WebAdmin.Update.UpdateCat" %>

<%@ Register Src="../UCtrs/SelCat.ascx" TagName="SelCat" TagPrefix="uc1" %>
<%@ Register Src="../UCtrs/SelPages.ascx" TagName="SelPages" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>网站栏目 </title>
    <script src="/WebPage/JsControl/jquery-ui-1.10.3/jquery-1.9.1.js" type="text/javascript"></script>
    <script src="/WebPage/JsControl/jquery-ui-1.10.3/ui/jquery-ui.js" type="text/javascript"></script>
    <link href="/WebPage/JsControl/jquery-ui-themes-1.10.3/themes/flick/jquery-ui.min.css"
        rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $(function () {
            $("#tabs").tabs();
        });
    </script>
    <style type="text/css">
        .list-maininfo-title
        {
            text-align: left;
            line-height: 30px;
            width: 120px;
            font-family: 宋体;
            padding: 0px 10px;
        }
        .list-maininfo-title span
        {
            color: #999;
            display: block;
        }
        .list-maininfo-right
        {
            padding: 5px;
            width: 200px;
        }
        .textbox-shadow
        {
            line-height: 25px;
            height: 25px;
        }
        .MainInfo-left
        {
            width: 200px;
        }
        .MainInfo-right
        {
            vertical-align: top;
        }
        .MainInfo-right img
        {
            max-height: 80px;
            max-width: 300px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ToolsTitle" runat="server">
    <div class="tools-title" style="background-position: 15px -218px;">
        网站栏目
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="TootsButtom" runat="server">
    <asp:LinkButton CssClass="tools-btn tools-btn-refrash" ID="LinkButton1" runat="server"
        OnClick="LinkButton1_Click">保存</asp:LinkButton>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="clear10">
    </div>
    <div style="width: 90%; margin-left: auto; margin-right: auto;">
        <div id="tabs">
            <ul>
                <li><a href='#tabs-1'>基本</a></li>
                <li><a href='#tabs-2'>高级</a></li>
            </ul>
            <div id='tabs-1' style="height: 480px; overflow-y: scroll;">
                <table cellpadding="0" cellspacing="0" class="MainInfo list-maininfo">
                    <tr>
                        <td class="MainInfo-banner MainInfo-banner-left MainInfo-left">
                        </td>
                        <td class="MainInfo-banner MainInfo-right">
                        </td>
                    </tr>
                    <tr>
                        <td class="MainInfo-left list-maininfo-title MainInfo-title">
                            栏目类型<span>请选择栏目类型，如想删除改栏目请选择禁用</span>
                        </td>
                        <td class="MainInfo-right list-maininfo-right">
                            <asp:DropDownList Width="200px" CssClass="textbox-shadow" ID="ddl_type" runat="server">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="MainInfo-left list-maininfo-title MainInfo-title">
                            选择父栏目<span>请选择父栏目</span>
                        </td>
                        <td class="MainInfo-right list-maininfo-right">
                            <uc1:SelCat Width="200px" CssClass="textbox-shadow" ID="ddl_cat" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td class="MainInfo-left list-maininfo-title MainInfo-title">
                            栏目名称<span>填写该栏目的显示名称</span>
                        </td>
                        <td class="MainInfo-right list-maininfo-right">
                            <asp:TextBox CssClass="textbox-shadow" Width="80%" ID="txt_text" runat="server"></asp:TextBox>
                            <br />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txt_text"
                                ErrorMessage="请输入栏目名称" ForeColor="Red"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="MainInfo-left list-maininfo-title MainInfo-title">
                            序号 <span>栏目根据序号从小到大排序</span>
                        </td>
                        <td class="MainInfo-right list-maininfo-right">
                            <asp:TextBox Width="200px" CssClass="textbox-shadow" ID="txt_index" runat="server"></asp:TextBox>
                            <br />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txt_index"
                                ErrorMessage="请输入序号" ForeColor="Red"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="MainInfo-banner MainInfo-banner-left MainInfo-left">
                        </td>
                        <td class="MainInfo-banner MainInfo-right">
                        </td>
                    </tr>
                </table>
            </div>
            <div id='tabs-2' style="height: 480px; overflow-y: scroll;">
                <table cellpadding="0" cellspacing="0" class="MainInfo list-maininfo">
                    <tr>
                        <td class="MainInfo-banner MainInfo-banner-left MainInfo-left">
                        </td>
                        <td class="MainInfo-banner MainInfo-right">
                        </td>
                    </tr>
                    <tr>
                        <td class="MainInfo-left list-maininfo-title MainInfo-title">
                            状态 <span>表示栏目是否可用</span>
                        </td>
                        <td class="MainInfo-right list-maininfo-right">
                            <asp:DropDownList CssClass="textbox-shadow" ID="ddl_Status" runat="server">
                                <asp:ListItem Value="true">启用</asp:ListItem>
                                <asp:ListItem Value="true">禁用</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="MainInfo-left list-maininfo-title MainInfo-title">
                            栏目关键字 <span>生成页面地址时使用，默认为父栏目关键字加参数</span>
                        </td>
                        <td class="MainInfo-right list-maininfo-right">
                            <asp:TextBox Width="80%" CssClass="textbox-shadow" ID="txt_Key" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="MainInfo-left list-maininfo-title MainInfo-title">
                            栏目图片 <span>改栏目在页面中显示的图片</span>
                        </td>
                        <td class="MainInfo-right list-maininfo-right">
                            <table style="width: 100%;">
                                <tr>
                                    <td>
                                        <asp:FileUpload CssClass="textbox-shadow" Style="float: none;" ID="FileUpload1" runat="server" />
                                        <br />
                                        <asp:Button ID="BtnUpload" Style="float: none;" CssClass="tools-btn tools-btn-upload"
                                            runat="server" Text="上传" OnClick="BtnUpload_Click" />
                                    </td>
                                    <td>
                                        <asp:Image ID="Image1" runat="server" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td class="MainInfo-left list-maininfo-title MainInfo-title">
                            栏目页面 <span>默认继承父页面设置</span>
                        </td>
                        <td class="MainInfo-right list-maininfo-right">
                            <uc2:SelPages Width="200px" CssClass="textbox-shadow" ID="SelPages1" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td class="MainInfo-left list-maininfo-title MainInfo-title">
                            内容类型 <span>选择栏目下的内容类型，默认为文章</span>
                        </td>
                        <td class="MainInfo-right list-maininfo-right">
                            <asp:DropDownList Width="200px" CssClass="textbox-shadow" ID="ddl_CtnType" DataValueField="Key"
                                DataTextField="Text" runat="server">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="MainInfo-left list-maininfo-title MainInfo-title">
                            链接URL <span>如果该栏目是链接，请填写链接地址</span>
                        </td>
                        <td class="MainInfo-right list-maininfo-right">
                            <asp:TextBox Width="80%" CssClass="textbox-shadow" ID="txt_NavUrl" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="MainInfo-left list-maininfo-title MainInfo-title">
                            链接打开方式 <span>如果该栏目是链接，选择打开链接的方式</span>
                        </td>
                        <td class="MainInfo-right list-maininfo-right">
                            <asp:DropDownList Width="200px" CssClass="textbox-shadow" ID="ddl_NavTarget" runat="server">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="MainInfo-banner MainInfo-banner-left MainInfo-left">
                        </td>
                        <td class="MainInfo-banner MainInfo-right">
                            <asp:CheckBoxList ID="ckb_EditAttr" runat="server">
                            </asp:CheckBoxList>
                        </td>
                    </tr>
                </table>
                <div class="clear20">
                </div>
            </div>
        </div>
    </div>
</asp:Content>
